package org.chen.feign;

import org.chen.request.CommentRequest;
import org.chen.response.CommentResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "comment-service")
public interface CommentServiceClient {
    @PostMapping("/api/comment")
    CommentResponse postComment(@RequestBody CommentRequest request);
}